package com.liyang.microservice.service.service.api;


import com.liyang.microservice.service.service.api.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
// ,url="http://localhost:56050/"  可以
// ,url="http://service3/"  可以
@FeignClient(value = "service3")
public interface ConsumerService3 {
    @RequestMapping("/service")
    String service();

    @RequestMapping("/user/{id}")
    User pathUser(Long id);

    @RequestMapping("/user")
    User getUser(@RequestParam("name") String name);

    @RequestMapping("/postUser")
    User postUser(@RequestBody User user);


}